home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000405_slash_dev_slas…_2000@yahoo.com_Mon Aug 21 12:25:12 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: reader2.panix.com!reader1.panix.com!panix!newsfeed.media.kyoto-u.ac.jp!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail
  2. From: "Mark Sapiro" <slash_dev_slash_null_2000@yahoo.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: logging / flushing output
  5. Date: 20 Aug 2006 19:15:39 -0700
  6. Organization: http://groups.google.com
  7. Lines: 25
  8. Message-ID: <1156126539.183663.57420@i3g2000cwc.googlegroups.com>
  9. References: <1155487576.755318.253070@b28g2000cwb.googlegroups.com>
  10. NNTP-Posting-Host: 68.183.193.239
  11. Mime-Version: 1.0
  12. Content-Type: text/plain; charset="iso-8859-1"
  13. X-Trace: posting.google.com 1156126542 27117 127.0.0.1 (21 Aug 2006 02:15:42 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: Mon, 21 Aug 2006 02:15:42 +0000 (UTC)
  16. User-Agent: G2/0.2
  17. X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20060111 Netscape/8.1,gzip(gfe),gzip(gfe)
  18. Complaints-To: groups-abuse@google.com
  19. Injection-Info: i3g2000cwc.googlegroups.com; posting-host=68.183.193.239;
  20.    posting-account=iQNWIg0AAAAD2fStXNC9nwGlPdSqjWrI
  21. Xref: panix comp.protocols.kermit.misc:15537
  22.  
  23. tomviolin wrote:
  24. > System: C-Kermit 8.0.211 on Linux 2.6 (Ubuntu).
  25. >
  26. > I use the script as a "kerbang" script (starting with
  27. > #!/usr/local/bin/kermit +), have "set input echo on" and when I run the
  28. > script at the terminal it works as expected, with the output from the
  29. > remote system interspersed with the text from the ECHO statements.
  30. >
  31. > However, when I redirect the output to a file thusly:
  32. >
  33. >   $ ./script.ksc  > script.log 2>&1
  34. >
  35. > strange things happen.  Doing a "tail -f script.log" from another
  36. > window (or backgrounding the script and doing the "tail" from the same
  37. > window) reveals that the output from the remote system is showing up in
  38. > real time, but the output from the ECHO statements is not showing up
  39. > until the script terminates.
  40.  
  41. Recent daily builds <http://www.columbia.edu/kermit/ckdaily.html> have
  42. a --unbuffered command line option. This may help.
  43.  
  44. --
  45. Mark Sapiro msapiro at value net      The highway is for gamblers,
  46. San Francisco Bay Area, California    better use your sense - B. Dylan
  47.